// 网络请求api接口
import service from '@/utils/request.js'
// 测试
export const wxCodeCheck = (code) => {
	return service({
		method: 'POST',
		url: '/wechat/validation',
		data: code
	});
};

export const wxAddUserInf = (inf) => {
	return service({
		method: 'POST',
		url: '/wechat/user',
		data: inf
	});
};

export const loginToBc = (ap) => {
	return service({
		method: 'POST',
		url: '/login',
		data: ap
	});
};

export const getUserInf = () => {
	return service({
		method: 'GET',
		url: '/login/info',
	});
}